<?phpuse Illuminate\Database\Eloquent\Model;class agentlevelModel extends Model{	protected $table 		= 'agent_level';	public	  $primaryKey	= 'level';    public $timestamps = false;    public function getUpgradeRulesAttribute()    {        return $this->attributes['upgrade_rules'] ? json_decode($this->attributes['upgrade_rules'], true) : (new stdClass);    }    public function getAwardPing1Attribute()    {        return $this->attributes['award_ping1'] ? json_decode($this->attributes['award_ping1'], true) : ['ratio'=>'', 'money'=>''];    }    public function getAwardPing2Attribute()    {        return $this->attributes['award_ping2'] ? json_decode($this->attributes['award_ping2'], true) : ['ratio'=>'', 'money'=>''];    }}